Write a Program to Calculate Compound Interest in Python